home *** CD-ROM | disk | FTP | other *** search
- property ancestor, pMIAW
- global gEnvironObj, gGraphHelp, gIsRolloverTextOn
-
- on new me, buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, descendant
- if objectp(descendant) then
- ancestor = new(script("button with balloon"), buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, descendant)
- else
- ancestor = new(script("button with balloon"), buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, me)
- end if
- cursor = [member("point hand", "graph.cst"), member("point hand mask", "graph.cst")]
- set the cursor of sprite the pChannel of me to cursor
- return me
- end
-
- on setMIAW me, miaw
- pMIAW = miaw
- return me
- end
-
- on performFunction me
- tell the stage
- playSFX(5)
- end tell
- if not windowPresent("Graph Help") then
- whichPage = getPageNum(pMIAW)
- tell the stage
- openHelpWindow(whichPage)
- end tell
- else
- showMe(gGraphHelp)
- end if
- return me
- end
-
- on performRolloverFunction me
- if gIsRolloverTextOn then
- performRolloverFunction(ancestor)
- end if
- return me
- end
-
- on performRolloffFunction me
- if gIsRolloverTextOn then
- performRolloffFunction(ancestor)
- end if
- return me
- end
-